package com.tianji.learning.service;

import com.tianji.common.domain.dto.PageDTO;
import com.tianji.learning.domain.dto.ReplyDTO;
import com.tianji.learning.domain.po.InteractionReply;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.query.ReplyPageQuery;
import com.tianji.learning.domain.vo.ReplyVO;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * <p>
 * 互动问题的回答或评论 服务类
 * </p>
 *
 * @author 蒼飞
 * @since 2023-09-04
 */
public interface InteractionReplyService extends IService<InteractionReply> {
    /**
     * 提交回答或评论
     * @param replyDTO
     */
    void addNewComment(ReplyDTO replyDTO);

    /**
     * 分页查询回答和评论列表
     * @param replyPageQuery
     * @return
     */
    PageDTO<ReplyVO> queryComment(ReplyPageQuery replyPageQuery);

    /**
     * 隐藏评论
     * @param id
     * @param hidden
     */
    void hiddenReply(Long id, Boolean hidden);

}
